package br.com.vagacerta.controller;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;

public class AvulsoController {
	

	public static void main(String[] args) {
		
		Socket socket;

		try {
			socket = new Socket("127.0.0.1", 6000);
			Scanner s = new Scanner("Mensagem: " + socket.getInputStream());
			System.out.println("Recebi do servidor: " + s.nextLine());
			s.close();

		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
